package main

import "fmt"

const COUNT int = 4

func main() {
	//数组
	a := [COUNT]string{"2", "33", "2223", "1234"}
	fmt.Printf("%T", "%v", a, a)

	//指针数组
	var ptf [COUNT]*string
	for i := 0; i < COUNT; i++ {
		ptf[i] = &a[i]
	}
	fmt.Printf("%T", "%v", ptf, ptf)
	for _, s := range ptf {
		println(s)
		println(*s)
	}

	var c int
	var ptf1 *int
	var pptf **int

	c = 123
	ptf1 = &c
	pptf = &ptf1
	fmt.Println(c, ptf1, pptf)
}
